var querystring = require('querystring');
var str = 'id=aaa';
var obj = querystring.parse(str);
console.log(obj.id);
for(var key in obj) {
  
}
// console.log(querystring.parse(str));//'{ foo: 'bar', abc: [ 'xyz', '123' ] }'